<?
session_start();
if($_SESSION["admin_name"]==null){

    $_SESSION["error-message"]="权限不足，请先登录";
    header("Location:include/error.php");

}
if($_SESSION["admin_pass"]==null){

    $_SESSION["error-message"]="权限不足，请先登录";
    header("Location:include/error.php");

}
?>
